package com.example.orderform.lmpl;

import com.example.orderform.dao.DeliverGoodsMapper;
import com.example.orderform.server.DeliverGoodsServer;
import com.example.orderform.vo.Order;
import com.example.orderform.vo.Refund;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeliverGoodsLmpl implements DeliverGoodsServer {
    @Autowired
    DeliverGoodsMapper deliverGoodsMapper;

    @Override
    public List<Order> delivercha(int q,int j,int userid) {
        return deliverGoodsMapper.delivercha(q, j,userid);
    }

    @Override

    public int delivcha(int userid)
    {
        System.out.println("userid"+userid);
        return deliverGoodsMapper.delivcha(userid);
    }

    @Override
    public Order deliorderxq(String orderid) {
        return deliverGoodsMapper.deliorderxq(orderid);
    }



    @Override
    public List<Order> mhseleordernumber(String ordernumber) {
        return deliverGoodsMapper.mhseleordernumber(ordernumber);
    }

    @Override
    public int tuikuang(String ordernumber) {
        return deliverGoodsMapper.tuikuang(ordernumber);
    }

    @Override
    public List<Refund> tuikuancha(int userid) {
        return deliverGoodsMapper.tuikuancha(userid);
    }

    @Override
    public String daihundjs(int orderid) {
        return deliverGoodsMapper.daihundjs(orderid);
    }

    @Override
    public int daihuogai(int orderid) {
        return deliverGoodsMapper.daihuogai(orderid);
    }

    @Override
    public int addordertow(int userid,String ordernumber, String servicetype, String cargostatus, String price, String refundreason, String refundinstructions, String shoopname, String ordercolor, String ordersieze, String picture) {
        return deliverGoodsMapper.addordertow(userid,ordernumber, servicetype, cargostatus, price, refundreason, refundinstructions, shoopname, ordercolor, ordersieze, picture);
    }

    @Override
    public List<Order> daifahuo(int q, int j, int userid) {
        return deliverGoodsMapper.daifahuo(q, j, userid);
    }

    @Override
    public int backfahuo(int orderid) {
        return deliverGoodsMapper.backfahuo(orderid);
    }

    @Override
    public List<Refund> selecopy2(int userid) {
        return deliverGoodsMapper.selecopy2(userid);
    }

    @Override
    public int backcopy1(int orderid) {
        return deliverGoodsMapper.backcopy1(orderid);
    }

    @Override
    public int backcopy2(int id) {
        return deliverGoodsMapper.backcopy2(id);
    }

    @Override
    public int backcopy3(int orderid) {
        return deliverGoodsMapper.backcopy3(orderid);
    }

    @Override
    public List<Order> selefahuo(int userid) {
        return deliverGoodsMapper.selefahuo(userid);
    }


    @Override
    public List<Refund> selecopys2(int userid) {
        return deliverGoodsMapper.selecopys2(userid);
    }


}
